﻿using LX.NHibernate.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace NHibernate.Main.App_Start
{
    public class MyHandleExceptionAttribute : HandleErrorAttribute
    {
        public override void OnException(ExceptionContext filterContext)
        {
            base.OnException(filterContext);

            LogHelper.Error("被系统过滤捕获的异常" + filterContext.Exception);

            filterContext.HttpContext.Response.Redirect("/Error.html");
        }
    }
}